package com.mobisystems.youpark;

import com.parse.ParseClassName;
import com.parse.ParseGeoPoint;
import com.parse.ParseObject;
import com.parse.ParseQuery;
import com.parse.ParseUser;

// This is a data representation of LocationData object which 
// will hold all of the information needed for a published parking spot


@ParseClassName("LocationData")
public class YouParkParkedLocation extends ParseObject {

	public boolean getIsParked() {
		return getBoolean("isParked");
	}
	
	public void setIsParked(boolean value) {
		put("isParked", value);
	}
	
	public ParseUser getUser() {
		return getParseUser("user");
	}
	
	public void setUser(ParseUser value) {
		put("user", value);
	}
	
	public ParseGeoPoint getLocation() {
		return getParseGeoPoint("parkedLocation");
	}
	
	public void setLocation(ParseGeoPoint value) {
		put("parkedLocation", value);
	}
	
	public String getGeoPointAddress() {
		return getString("geoPointAddress");
	}
	
	public void setGeoPointAddress(String value) {
		put("geoPointAddress", value);
	}
	
	public String getZipCode() {
		return getString("zipCode");
	}
	
	public void setZipCode(String value) {
		put("zipCode", value);
	}
	
	public String getCountry() {
		return getString("country");
	}
	
	public void setCountry(String value) {
		put("country", value);
	}
	
	public String getCity() {
		return getString("city");
	}
	
	public void setCity(String value) {
		put("city", value);
	}
	
	public static ParseQuery<YouParkParkedLocation> getQuery() {
		return ParseQuery.getQuery(YouParkParkedLocation.class);
	}
}
